/*package com.teamfractal.fracdustry.common.world.feature.fluidGeneration;

import com.teamfractal.fracdustry.common.block.init.FDBlocks;
import net.minecraft.resources.ResourceKey;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.levelgen.VerticalAnchor;
import net.minecraft.world.level.levelgen.feature.ConfiguredFeature;
import net.minecraft.world.level.levelgen.feature.FeaturePlaceContext;
import net.minecraft.world.level.levelgen.feature.LakeFeature;
import net.minecraft.world.level.levelgen.feature.configurations.BlockStateConfiguration;

public class FDPetroleumGeneration extends LakeFeature {
    public static final FDPetroleumGeneration PETROLEUM_GENERATION = new FDPetroleumGeneration();
    public static final ConfiguredFeature<?, ?> CONFIGURED_FEATURE = PETROLEUM_GENERATION
            .configured(new BlockStateConfiguration(FDBlocks.fluidPetroleum.get().defaultBlockState()))
            .rangeUniform(VerticalAnchor.absolute(0), VerticalAnchor.absolute(150)).squared().rarity(10);

    public FDPetroleumGeneration() {
        super(BlockStateConfiguration.CODEC);
    }
    public boolean place(FeaturePlaceContext<BlockStateConfiguration> context) {
        ResourceKey<Level> dimensionType = context.level().getLevel().dimension();
        boolean dimensionCriteria = dimensionType == Level.OVERWORLD;
        if (!dimensionCriteria)
            return false;
        return super.place(context);
    }

}*/
